using AutoMapper;
using Factory.EquipmentManagement.CheckMaintenanceItems;
using Factory.EquipmentManagement.CheckMaintenanceItems.Dto;
using Factory.MasterData.Materials;
using Factory.MasterData.Materials.Dto;
using Factory.MasterData.Vendors;
using Factory.MasterData.Vendors.Dto;
using Factory.ProductionManagement.Procedure.Dto;
using Factory.ProductionManagement.Procedures;
using Factory.ProductionManagement.ProcedureSettings;
using Factory.ProductionManagement.ProcedureSettings.Dto;
using Factory.QualityControl.CommonDefects;
using Factory.QualityControl.CommonDefects.Dto;

namespace Factory;

public class FactoryApplicationAutoMapperProfile : Profile
{
    public FactoryApplicationAutoMapperProfile()
    {
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */
        CreateMap<Material, MaterialDto>();
        CreateMap<MaterialDto, Material>();
        CreateMap<Vendor, VendorDto>();
        CreateMap<VendorDto, Vendor>();
        CreateMap<CheckMaintenanceItem,CheckMaintenanceItemDto>();
        CreateMap<CheckMaintenanceItemDto, CheckMaintenanceItem>();
        CreateMap<ProcedureSettingDto, ProcedureSetting>();
        CreateMap<ProcedureSetting, ProcedureSettingDto>();
        CreateMap<Procedure, ProcedureDto>();
        CreateMap<ProcedureDto, Procedure>();
        CreateMap<CommonDefectDto, CommonDefect>();
        CreateMap<CommonDefect, CommonDefectDto>();
    }
}
